package com.jiang.daily.Q2278;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/03/31 9:46
 */
public class Solution {
    public int percentageLetter(String s, char letter) {
        int cnt = 0;
        for (char c : s.toCharArray()) {
            if (c == letter) {
                cnt++;
            }
        }
        return (int) (cnt * 100 / s.length());
    }
}
